package com.dailyblue.project.estate.service.impl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.dailyblue.project.estate.bean.Power;
import com.dailyblue.project.estate.mapper.PowerMapper;
import com.dailyblue.project.estate.service.PowerService;
import com.dailyblue.project.estate.util.JsonResult;
import com.dailyblue.project.estate.util.ResultTool;
import jakarta.annotation.Resource;

import org.springframework.stereotype.Service;
/**
 * @Auther:Liu
 * @Testname:PowerServiceImpl
 * @Date:2025/9/21 15:57
 */
@Service
public class PowerServiceImpl extends ServiceImpl<PowerMapper, Power> implements PowerService {
    @Resource
    private PowerMapper powerMapper;

    @Override
    public JsonResult findPowersByStudentId(String studentId) {
        return ResultTool.success(powerMapper.findPowersByStudentId(studentId));
    }
}
